package com.zmj.framework.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zmj.framework.bean.Employee;
import com.zmj.framework.dao.EmployeeDao;
import com.zmj.framework.service.EmployeeManager;
import com.zmj.framework.util.PageController;
@Service("employeeManager")
public class EmployeeManagerImpl implements EmployeeManager {
	@Autowired
	private EmployeeDao employeeDao;
	
	public Employee getEmployeeById(String id) {
		return employeeDao.getEmployeeById(id);
	}

	public List<Employee> getAllEmployeeList() {
		return employeeDao.getAllEmployeeList();
	}

	public List<Employee> getEmployeeList(Employee employee,
			PageController controller) {
		return employeeDao.getEmployeeList(employee, controller);
	}

	public int saveEmployee(Employee employee) {
		return employeeDao.saveEmployee(employee);
	}

	public int removeEmployee(String id) {
		return employeeDao.removeEmployee(id);
	}

	public Employee getEmployeeByYgbh(String ygbh) {
		return employeeDao.getEmployeeByYgbh(ygbh);
	}

}
